-- GENERATED SPELL FOR [Sunhawk Saboteur] --


function spell0_17609(pUnit, Event) --@Mark of the Sunhawk,n/a--
pUnit:FullCastSpellOnTarget(31734,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17609', 20250, 1)
end

function spell1_17609(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(14443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17609', 619, 1)
end

function spell2_17609(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17609', 579, 1)
end

function Sorts_17609(pUnit, Event)
local choix_sorts_17609 = math.random(0, 2)
if choix_sorts_17609 == 0 then
pUnit:RegisterEvent('spell0_17609', 1, 1)
end
if choix_sorts_17609 == 1 then
pUnit:RegisterEvent('spell1_17609', 1, 1)
end
if choix_sorts_17609 == 2 then
pUnit:RegisterEvent('spell2_17609', 1, 1)
end
end

function mob17609_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17609', math.random(1500, 3000), 1)
end

function mob17609_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17609_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17609_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17609, 1, 'mob17609_Action')
RegisterUnitEvent(17609, 2, 'mob17609_Leave')
RegisterUnitEvent(17609, 3, 'mob17609_Kill')
RegisterUnitEvent(17609, 4, 'mob17609_Die')
